package com.kim.useroauth.server.constants;

/**
 * 登录或刷新token异常枚举
 */
public enum UserOauthServiceCode {

    /**
     * 短信验证码无效
     */
    SMS_CODE_BAD("短信验证码无效", "11000"),

    /**
     * 电话号已经注册过
     */
    PHONE_ALREADY_USE("电话号已经注册过", "11001"),

    /**
     * 未知退出登录异常
     */
    UNKNOWN_LOGOUT_ERR("未知退出登录异常", "11002"),

    ;

    private String msg;
    private String code;

    UserOauthServiceCode(String msg, String code) {
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
